﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace ImmovablesManager
{
    public class FieldValidator
    {
        private static Regex _areaRegex = new Regex(@"(\d+\.\d+)|(\d+)");

        public static bool ValidateArea(string area)
        {
            return _areaRegex.IsMatch(area);
        }

    }
}
